import { getdata } from '@/api/home'

export default {
  namespaced: true,
  state () {
    return {
      list: []
    }
  },
  mutations: {
    getgoodslist (state, result) {
      state.list = result.data.pageData.items[6].data
    }
  },
  actions: {
    async getresult (context) {
      const result = await getdata()
      context.commit('getgoodslist', result)
    }
  },
  getters: {}
}
